<?php
namespace App\Models\Entity;

use Swoft\Db\Model;
use Swoft\Db\Bean\Annotation\Column;
use Swoft\Db\Bean\Annotation\Entity;
use Swoft\Db\Bean\Annotation\Id;
use Swoft\Db\Bean\Annotation\Required;
use Swoft\Db\Bean\Annotation\Table;
use Swoft\Db\Types;

/**
 * 用户表

 * @Entity()
 * @Table(name="lr_user")
 * @uses      LrUser
 */
class LrUser extends Model
{
    /**
     * @var int $id 用户表：包括后台管理员、商家会员和普通会员
     * @Id()
     * @Column(name="id", type="integer")
     */
    private $id;

    /**
     * @var string $name 登陆账号
     * @Column(name="name", type="string", length=50)
     * @Required()
     */
    private $name;

    /**
     * @var string $uname 昵称
     * @Column(name="uname", type="string", length=50)
     */
    private $uname;

    /**
     * @var string $pwd MD5密码
     * @Column(name="pwd", type="string", length=50)
     */
    private $pwd;

    /**
     * @var int $addtime 创建日期
     * @Column(name="addtime", type="integer", default=0)
     */
    private $addtime;

    /**
     * @var float $jifen 积分
     * @Column(name="jifen", type="decimal", default=0)
     */
    private $jifen;

    /**
     * @var string $photo 头像
     * @Column(name="photo", type="string", length=255)
     */
    private $photo;

    /**
     * @var string $tel 手机
     * @Column(name="tel", type="char", length=15)
     */
    private $tel;

    /**
     * @var string $qqId qq
     * @Column(name="qq_id", type="string", length=20, default="0")
     */
    private $qqId;

    /**
     * @var string $email 邮箱
     * @Column(name="email", type="string", length=50)
     */
    private $email;

    /**
     * @var int $sex 性别
     * @Column(name="sex", type="tinyint", default=0)
     */
    private $sex;

    /**
     * @var int $del 状态
     * @Column(name="del", type="tinyint", default=0)
     */
    private $del;

    /**
     * @var string $openid 授权ID
     * @Column(name="openid", type="string", length=50)
     * @Required()
     */
    private $openid;

    /**
     * @var string $source 第三方平台(微信，QQ)
     * @Column(name="source", type="string", length=10)
     * @Required()
     */
    private $source;

    /**
     * @var string $check 
     * @Column(name="check", type="string", length=255)
     */
    private $check;

    /**
     * @var int $checktime 
     * @Column(name="checktime", type="integer")
     */
    private $checktime;

    /**
     * @var string $codeImg 二维码图片
     * @Column(name="code_img", type="string", length=255)
     */
    private $codeImg;

    /**
     * @var float $wthdrawGold 可提现金币数
     * @Column(name="wthdraw_gold", type="decimal", default=0)
     */
    private $wthdrawGold;

    /**
     * @var float $gold 金币
     * @Column(name="gold", type="decimal", default=0)
     */
    private $gold;

    /**
     * @var float $denarius 银币
     * @Column(name="denarius", type="decimal", default=0)
     */
    private $denarius;

    /**
     * @var int $goldStatus 0是没有购买过金币产品1是
     * @Column(name="gold_status", type="tinyint", default=0)
     */
    private $goldStatus;

    /**
     * @var int $status 是否首次登陆  1是 0否
     * @Column(name="status", type="tinyint", default=1)
     */
    private $status;

    /**
     * @var int $payStatus 是否首次购买金币产品 1否 0是
     * @Column(name="pay_status", type="tinyint", default=0)
     */
    private $payStatus;

    /**
     * @var float $consume 用户总消费
     * @Column(name="consume", type="decimal", default=0)
     */
    private $consume;

    /**
     * @var float $payMoneyOne 首次支付的价格
     * @Column(name="pay_money_one", type="decimal", default=0)
     */
    private $payMoneyOne;

    /**
     * @var float $payGoldOne 首次消费赠送金币数
     * @Column(name="pay_gold_one", type="decimal", default=0)
     */
    private $payGoldOne;

    /**
     * @var string $unionid UnionID
     * @Column(name="unionid", type="char", length=64, default="0")
     */
    private $unionid;

    /**
     * @var int $lastload 最后一次登录时间
     * @Column(name="lastload", type="integer", default=0)
     */
    private $lastload;

    /**
     * 用户表：包括后台管理员、商家会员和普通会员
     * @param int $value
     * @return $this
     */
    public function setId(int $value)
    {
        $this->id = $value;

        return $this;
    }

    /**
     * 登陆账号
     * @param string $value
     * @return $this
     */
    public function setName(string $value): self
    {
        $this->name = $value;

        return $this;
    }

    /**
     * 昵称
     * @param string $value
     * @return $this
     */
    public function setUname(string $value): self
    {
        $this->uname = $value;

        return $this;
    }

    /**
     * MD5密码
     * @param string $value
     * @return $this
     */
    public function setPwd(string $value): self
    {
        $this->pwd = $value;

        return $this;
    }

    /**
     * 创建日期
     * @param int $value
     * @return $this
     */
    public function setAddtime(int $value): self
    {
        $this->addtime = $value;

        return $this;
    }

    /**
     * 积分
     * @param float $value
     * @return $this
     */
    public function setJifen(float $value): self
    {
        $this->jifen = $value;

        return $this;
    }

    /**
     * 头像
     * @param string $value
     * @return $this
     */
    public function setPhoto(string $value): self
    {
        $this->photo = $value;

        return $this;
    }

    /**
     * 手机
     * @param string $value
     * @return $this
     */
    public function setTel(string $value): self
    {
        $this->tel = $value;

        return $this;
    }

    /**
     * qq
     * @param string $value
     * @return $this
     */
    public function setQqId(string $value): self
    {
        $this->qqId = $value;

        return $this;
    }

    /**
     * 邮箱
     * @param string $value
     * @return $this
     */
    public function setEmail(string $value): self
    {
        $this->email = $value;

        return $this;
    }

    /**
     * 性别
     * @param int $value
     * @return $this
     */
    public function setSex(int $value): self
    {
        $this->sex = $value;

        return $this;
    }

    /**
     * 状态
     * @param int $value
     * @return $this
     */
    public function setDel(int $value): self
    {
        $this->del = $value;

        return $this;
    }

    /**
     * 授权ID
     * @param string $value
     * @return $this
     */
    public function setOpenid(string $value): self
    {
        $this->openid = $value;

        return $this;
    }

    /**
     * 第三方平台(微信，QQ)
     * @param string $value
     * @return $this
     */
    public function setSource(string $value): self
    {
        $this->source = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setCheck(string $value): self
    {
        $this->check = $value;

        return $this;
    }

    /**
     * @param int $value
     * @return $this
     */
    public function setChecktime(int $value): self
    {
        $this->checktime = $value;

        return $this;
    }

    /**
     * 二维码图片
     * @param string $value
     * @return $this
     */
    public function setCodeImg(string $value): self
    {
        $this->codeImg = $value;

        return $this;
    }

    /**
     * 可提现金币数
     * @param float $value
     * @return $this
     */
    public function setWthdrawGold(float $value): self
    {
        $this->wthdrawGold = $value;

        return $this;
    }

    /**
     * 金币
     * @param float $value
     * @return $this
     */
    public function setGold(float $value): self
    {
        $this->gold = $value;

        return $this;
    }

    /**
     * 银币
     * @param float $value
     * @return $this
     */
    public function setDenarius(float $value): self
    {
        $this->denarius = $value;

        return $this;
    }

    /**
     * 0是没有购买过金币产品1是
     * @param int $value
     * @return $this
     */
    public function setGoldStatus(int $value): self
    {
        $this->goldStatus = $value;

        return $this;
    }

    /**
     * 是否首次登陆  1是 0否
     * @param int $value
     * @return $this
     */
    public function setStatus(int $value): self
    {
        $this->status = $value;

        return $this;
    }

    /**
     * 是否首次购买金币产品 1否 0是
     * @param int $value
     * @return $this
     */
    public function setPayStatus(int $value): self
    {
        $this->payStatus = $value;

        return $this;
    }

    /**
     * 用户总消费
     * @param float $value
     * @return $this
     */
    public function setConsume(float $value): self
    {
        $this->consume = $value;

        return $this;
    }

    /**
     * 首次支付的价格
     * @param float $value
     * @return $this
     */
    public function setPayMoneyOne(float $value): self
    {
        $this->payMoneyOne = $value;

        return $this;
    }

    /**
     * 首次消费赠送金币数
     * @param float $value
     * @return $this
     */
    public function setPayGoldOne(float $value): self
    {
        $this->payGoldOne = $value;

        return $this;
    }

    /**
     * UnionID
     * @param string $value
     * @return $this
     */
    public function setUnionid(string $value): self
    {
        $this->unionid = $value;

        return $this;
    }

    /**
     * 最后一次登录时间
     * @param int $value
     * @return $this
     */
    public function setLastload(int $value): self
    {
        $this->lastload = $value;

        return $this;
    }

    /**
     * 用户表：包括后台管理员、商家会员和普通会员
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * 登陆账号
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * 昵称
     * @return string
     */
    public function getUname()
    {
        return $this->uname;
    }

    /**
     * MD5密码
     * @return string
     */
    public function getPwd()
    {
        return $this->pwd;
    }

    /**
     * 创建日期
     * @return int
     */
    public function getAddtime()
    {
        return $this->addtime;
    }

    /**
     * 积分
     * @return mixed
     */
    public function getJifen()
    {
        return $this->jifen;
    }

    /**
     * 头像
     * @return string
     */
    public function getPhoto()
    {
        return $this->photo;
    }

    /**
     * 手机
     * @return string
     */
    public function getTel()
    {
        return $this->tel;
    }

    /**
     * qq
     * @return string
     */
    public function getQqId()
    {
        return $this->qqId;
    }

    /**
     * 邮箱
     * @return string
     */
    public function getEmail()
    {
        return $this->email;
    }

    /**
     * 性别
     * @return int
     */
    public function getSex()
    {
        return $this->sex;
    }

    /**
     * 状态
     * @return int
     */
    public function getDel()
    {
        return $this->del;
    }

    /**
     * 授权ID
     * @return string
     */
    public function getOpenid()
    {
        return $this->openid;
    }

    /**
     * 第三方平台(微信，QQ)
     * @return string
     */
    public function getSource()
    {
        return $this->source;
    }

    /**
     * @return string
     */
    public function getCheck()
    {
        return $this->check;
    }

    /**
     * @return int
     */
    public function getChecktime()
    {
        return $this->checktime;
    }

    /**
     * 二维码图片
     * @return string
     */
    public function getCodeImg()
    {
        return $this->codeImg;
    }

    /**
     * 可提现金币数
     * @return mixed
     */
    public function getWthdrawGold()
    {
        return $this->wthdrawGold;
    }

    /**
     * 金币
     * @return mixed
     */
    public function getGold()
    {
        return $this->gold;
    }

    /**
     * 银币
     * @return mixed
     */
    public function getDenarius()
    {
        return $this->denarius;
    }

    /**
     * 0是没有购买过金币产品1是
     * @return int
     */
    public function getGoldStatus()
    {
        return $this->goldStatus;
    }

    /**
     * 是否首次登陆  1是 0否
     * @return mixed
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * 是否首次购买金币产品 1否 0是
     * @return int
     */
    public function getPayStatus()
    {
        return $this->payStatus;
    }

    /**
     * 用户总消费
     * @return mixed
     */
    public function getConsume()
    {
        return $this->consume;
    }

    /**
     * 首次支付的价格
     * @return mixed
     */
    public function getPayMoneyOne()
    {
        return $this->payMoneyOne;
    }

    /**
     * 首次消费赠送金币数
     * @return mixed
     */
    public function getPayGoldOne()
    {
        return $this->payGoldOne;
    }

    /**
     * UnionID
     * @return string
     */
    public function getUnionid()
    {
        return $this->unionid;
    }

    /**
     * 最后一次登录时间
     * @return int
     */
    public function getLastload()
    {
        return $this->lastload;
    }

}
